﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tools
{
    public static class SerNumber
    {

        public static string Number()
        {

            string dt = System.DateTime.Now.ToString("yyMMddhhmmss");
            Random rd = new Random();
            dt += rd.Next(100, 999);
            return dt;
     

        }

        public static string Number(string name)
        {

            string dt = System.DateTime.Now.ToString("yyMMddhhmmss");
            Random rd = new Random();
            dt += rd.Next(100, 999);
            dt = name + dt;
            return dt;


        }

    }
}
